package com.forcht.ioc;

import com.forcht.ioc.io.ResourceLoader;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by forcht on 2018/4/17.
 */
public abstract class AbstractBeanDefinitionReader implements BeanDefinitionReader{

    private Map<String,BeanDefinition> registry;

    private ResourceLoader resourceLoader;

    protected AbstractBeanDefinitionReader(ResourceLoader resourceLoader){
        registry=new HashMap<>();
        this.resourceLoader=resourceLoader;
    }

    public Map<String, BeanDefinition> getRegistry() {
        return registry;
    }

    public ResourceLoader getResourceLoader() {
        return resourceLoader;
    }
}
